from django.db import models
from django.contrib.auth.models import AbstractUser

class UserInfo(AbstractUser):
    number = models.CharField(max_length=30, unique=True)
    phone = models.CharField(max_length=15, blank=True)   # 电话号码
    address = models.TextField(blank=True)                # 地址
    birth_date = models.DateField(null=True, blank=True)  # 出生日期
    description = models.TextField(blank=True, null=True)  # 添加个人描述字段
    def __str__(self):
        return self.username